<?php
	session_start();
	if(!isset($_SESSION['login'])){
		header('location:../vue/index.php');
	}
	elseif($_SESSION['id_droit'] == 1 &&  isset($_GET['uti_id']) && !empty($_GET['uti_id']))
	{
		include '../model/model_sql.php';
		$myvar = new SQLBlog();
		if($var=$myvar->SupprimerUnUtilisateur($_GET['uti_id'],$_SESSION['id'])){
		header('location:../vue/gestionDroit.php');
		} else var_dump($var);
	}
	else
		header('location:../vue/index.php');
	

?>
